# -*- coding: utf-8 -*-
<%inherit file="base.mako"/>

<%namespace name="room_comps" file="/rooms/components.mako"/>
<%namespace name="building_comps" file="/buildings/components.mako"/>
<%namespace name="student_comps" file="/students/components.mako"/>

<h2>
Building: ${c.building.label|h}
</h2>

<h3>
Rooms:
</h3>
<ul>
  %for room in c.building.rooms:
    <li>
      ${room_comps.link_to(room)|h}: ${student_comps.link_to(room.user)|h}
    </li>
  %endfor
</ul>